﻿
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Index</title>
</head>
<body>
    <div> 
        <form method="post">
            <p>名单1：<input type="text" name="num" /></p>
            <p>名单2：<input type="text" name="num" /></p>
            <p>名单3：<input type="text" name="num" /></p>
            <p>名单4：<input type="text" name="num" /></p>
            <p>名单5：<input type="text" name="num" /></p>
            <p>名单6：<input type="text" name="num" /></p>
            <p><button type="submit">提交</button></p>
        </form>
        @if(ViewBag.Num!=null){
            <p>名单有：</p>
            foreach (var item in ViewBag.num)
            {
                <p>@item</p>
            }

        }
    </div>
</body>
</html>
